package org.os.framework.oauth.repository;

import java.util.List;

import org.os.framework.jpa.BaseRepository;
import org.os.framework.oauth.entity.Permission;
import org.springframework.stereotype.Repository;

/**
 * 权限数仓
 * @author
 */
@Repository
public interface PermissionRepository extends BaseRepository<Permission, Long> {

    /**
     * 查询角色权限
     * @param role
     * @return
     */
    List<Permission> findAllByRole(String role);

}
